import request from '@/utils/request'
/*
  params 会自动进行url拼接，其它类似name、search这些则不会自动拼接
*/

export function listArticleReading(params) {
  return request({
    url: '/wechat/article_reading/',
    method: 'get',
    params
  })
}

export function addArticleReading(data) {
  return request({
    url: '/wechat/article_reading/',
    method: 'post',
    data
  })
}

export function editArticleReading(id, data) {
  return request({
    url: '/wechat/article_reading/' + id + '/',
    method: 'put',
    data
  })
}

export function viewArticleReading(id) {
  return request({
    url: '/wechat/article_reading/' + id + '/',
    method: 'get'
  })
}

export function delArticleReading(id) {
  return request({
    url: '/wechat/article_reading/' + id + '/',
    method: 'delete'
  })
}

export function startArticleReading(data) {
  return request({
    url: '/wechat/article_reading/is_start/',
    method: 'post',
    data
  })
}

export function stopArticleReading(data) {
  return request({
    url: '/wechat/article_reading/is_stop/',
    method: 'post',
    data
  })
}

export function checkNumber(params) {
  return request({
    url: '/check/mobile/number/',
    method: 'get',
    params
  })
}
